package com.huluobo.a2209mdmdemo.video

import com.huluobo.a2209mdmdemo.entity.VideoBean
import com.huluobo.lib_base.BaseRepo
import com.huluobo.lib_base.Res2
import com.huluobo.lib_http.HttpType
import com.huluobo.lib_http.NetworkFactory
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject

/**
 *  Created by LC on 2025/3/6.
 */
class VideoRepo @Inject constructor() : BaseRepo() {
    private val apiService by lazy { NetworkFactory.factory(HttpType.VIDEO).create(ApiService::class.java) }

    fun getVideos(currentPage: Int, pageSize: Int): Flow<Res2<VideoBean>> {
        return apiService.getVideos(currentPage, pageSize)
    }
}